﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Serilog;
using Sx.Data;

namespace Sx.Web.Admin
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var keys = DbProviderFactories.GetProviderInvariantNames();
            foreach (var k in keys)
            {
                Log.Debug(k);
            }
            //var f = DbProviderFactories.GetFactory("MySql.Data.MySqlClient");
            BuildWebHost(args).Run();
        }

        public static IWebHost BuildWebHost(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseStartup<Startup>()
                .Build();
    }
}
